/*
 * @Author: 谭必清
 * @Date: 2024-09-06 14:44:43
 * @LastEditors: 谭必清
 * @LastEditTime: 2024-09-06 14:45:45
 * @FilePath: /message-board/js/change.js
 * Copyright (c) 2020 - 2024 by TanBQ., All Rights Reserved.
 */
function changeIframeSrc(navId) {
    var iframe = document.querySelector('iframe');
    switch (navId) {
        case 'nav-item-opt-1':
            iframe.src = '/page/Info.html';
            break;
        case 'nav-item-opt-2':
            iframe.src = '/page/Todo.html';
            break;
        case 'nav-item-opt-3':
            // 进行判断，如果登录了，就是跳转到个人中心，否则跳转到登录页面
            iframe.src = '/page/Account.html';
            break;
        default:
            iframe.src = '/page/Info.html';
    }
}